package com.ruoyi.loan.loan.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 借款表
 * @TableName tb_loan
 */
@TableName(value ="tb_loan")
@Data
public class TbLoan implements Serializable {
    /**
     * 借款id
     */
    @TableId(type = IdType.AUTO)
    private Integer loanId;

    /**
     * 用户id
     */
    private Integer loanUserId;

    /**
     * 借款人名称
     */
    private String loanLoanUserName;

    /**
     * 借款人手机号
     */
    private String loanLoanUserPhone;

    /**
     * 贷款产品id
     */
    private Integer loanLoanProductsId;

    /**
     * 用户贷款金额
     */
    private Double loanLoanMoney;

    /**
     * 用户贷款时间
     */
    private Integer loanLoanLastTerm;

    /**
     * 用户实际支付金额
     */
    private Double loanActualMoney;

    /**
     * 身份证
     */
    private String loanLoanCard;

    /**
     * 借款签章id
     */
    private Integer loanSignatureId;

    /**
     * 利息状态：0:未审核，1:审核通过，2:审核驳回，3:签章成功，4:签章失败
     */
    private Integer loanStatus;

    /**
     * 删除状态：0:未删除,2:已删除
     */
    private Integer delFlag;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改人
     */
    private String updateBy;

    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}